home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Directorty Opus 5 - Magellan
/
Opus 5 - Magellan.iso
/
Extras
/
NewUnDMS_3.1
/
Install
next >
Wrap
Text File
|
1997-06-05
|
3KB
|
100 lines
; $VER: UnDMS.install 1.0 (05.06.97)
(set @default-dest "DOpus5:")
(set @language "english")
(complete 0)
(set exec-version (/ (getversion) 65536))
(if (< exec-version 38)
(abort "This program needs at least OS 2.1.\n")
)
(message (cat "\nNew UnDMS for Directory Opus Magellan:\n\n"
"written by\n"
"Edmund Vermeulen <edmundv@grafix.xs4all.nl>\n"
"and\n"
"Frédéric Steinfels <fsteinfe@iiic.ethz.ch\n\n"
"This program is FreeWare.\n"
)
)
(complete 6)
(set #updatefile "Update file")
(set #noupdatefile "Do not update file")
(procedure Updatefile
(set #dest (askdir (prompt (cat "Where is or where do you want to have " #file " installed?"))
(help "Select the drawer where you want to install this file. Please use the given/default path.")
(default (cat #dest))
)
)
(set vernum1 (getversion (tackon #dest #file)) )
(set ver1 (/ vernum1 65536))
(set rev1 (- vernum1 (* ver1 65536) ) )
(set vernum2 (getversion (tackon #source #file)) )
(set ver2 (/ vernum2 65536))
(set rev2 (- vernum2 (* ver2 65536) ) )
(set #text (cat "'" #file "'\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
"Version Currently Installed : " ver1 "." rev1 "\n\n"
"Version in this Archive/Update: " ver2 "." rev2 "\n\n"
"Do you wish to install Version " ver2 "." rev2 " of "
"'" #file "' from the Archive/Update?"
)
)
(set pick (askchoice (choices #updatefile #noupdatefile) (prompt #text) (help #text) (default pick)))
(if (= pick 0) (copyfiles (source (tackon #source #file )) (dest #dest))))
;end Procedure
(set #file "UnDMS.dopus5") (set #source "ARexx") (set #dest "DOpus5:ARexx") (Updatefile)
(complete 12)
(set #file "DosInfo") (set #source "C") (set #dest "DOpus5:C") (Updatefile)
(complete 25)
(set #file "rexxdossupport.library") (set #source "libs") (set #dest "Libs:") (Updatefile)
(complete 37)
(set #file "rexxtricks.library") (set #source "libs") (set #dest "Libs:") (Updatefile)
(complete 50)
(set #file "DiskMasher archive") (set #source "FileTypes") (set #dest "DOpus5:FileTypes") (Updatefile)
(complete 62)
(set #file "DiskMasher archive.info") (set #source "FileTypes") (set #dest "DOpus5:FileTypes") (Updatefile)
(complete 75)
(message (cat "\nInstallation complete\n\n"
"Please read the following documentation!\n"
(all))
)
(complete 87)
(if (< exec-version 39)
(
(run "SYS:Utilities/More UnDMS.doc")
)
(
(run "SYS:Utilities/Multiview UnDMS.doc")
)
)
(complete 100)
(exit (quiet))